import {LayerType, UILayerDesc} from "../Core/Libs/LayerManager";


//通用游戏常量配置
export var GameParams = {
    //游戏debug
    Debug: true,

    //游戏版本
    Version: "1.0.1",

    //接口参数
    RequestHost: "",
    RequestTimeOut: 30000,

    //远程资源路径
    RemoteResourceUrl: ""
}


//资源预加载配置
//可选参数 uuid, url, path, dir, scene, type, ext, bundle
export var PreLoadAssetConfig = [
    //界面大图
    //UI界面预制体
    { path: 'images/background', type: cc.SpriteFrame, bundle: 'prefab' },

    //远程资源
    { url: 'images/background', type: cc.SpriteAtlas }

]


export var UILayerConfig: { [key: string]: UILayerDesc } = {
    "enter": { type: LayerType.Screen, scriptName: "EnterUI", prefabUrl: "prefab/screen/enter" },
    "home": { type: LayerType.Screen, scriptName: "HomeUI", prefabUrl: "prefab/screen/ui-home" },
    "loadingCloud" : { type: LayerType.Alone, scriptName: "LoadingCloud", prefabUrl: "prefab/alone/loading-cloud" },
    "popup": { type: LayerType.Popup, scriptName: "PopupUI", prefabUrl: "prefab/popup" },
    "battle": { type: LayerType.Screen, scriptName: "BattleUI", prefabUrl: "prefab/screen/battle",loadingLayerName:"loadingCloud" },
}

